home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
e
/
misc.save
/
000185_fdc@panix.com_Sat Jul 19 15:23:16 2008.msg
< prev
next >
Wrap
Internet Message Format
|
2011-07-03
|
2KB
Path: reader1.panix.com!panix!not-for-mail
From: Frank da Cruz <fdc@panix.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: pb with OUTPUT in a script
Date: Sat, 19 Jul 2008 19:23:00 +0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 33
Message-ID: <slrng84foq.lgv.fdc@panix2.panix.com>
References: <72e8cf05-4219-4d9a-8fe4-475b2fb7843e@r66g2000hsg.googlegroups.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: panix2.panix.com
X-Trace: reader1.panix.com 1216495380 4413 166.84.1.2 (19 Jul 2008 19:23:00 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Sat, 19 Jul 2008 19:23:00 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (NetBSD)
Xref: panix comp.protocols.kermit.misc:15777
On 2008-07-18, cedric <cedric_libre@yahoo.fr> wrote:
: I succeed to use my gsm PC-card using kermit interactively with AT
: commands, but actually I need to send SMS automatically.
: Here is the script I have executed :
:
: #/usr/bin/kermit
: set line /dev/ttyS2
: set speed 19200
: set carrier-watch off
: OUTPUT AT
:
: The output is :
: ./premier_k: line 5: OUTPUT : commande introuvable
:
What version of Kermit do you have? The OUTPUT command has been part of
Kermit for... well, forever. Furthermore "commande introuvable" is not
a message from Kermit. My guess is that the shell is executing this script,
not Kermit. You need to put a '!' after the '#' in the first line:
#!/usr/bin/kermit
and you need to give the script file execute permission.
Furthermore, when you send commands to the modem, you have to terminate
them with a carriage return:
OUTPUT AT\13
As mark suggested, see:
http://www.columbia.edu/kermit/ckscripts.html
- Frank